import request from '@/utils/request'
export default{
  //条件查询全球地区疫情
  getGlobalEpidemicListPage(page,limit,dataQuery){
    return request({
      url:'/api/v1/admin/globalepidemicdata/getAllAreaEpidemicData/'+page+"/"+limit,
      method:'post',
      data:dataQuery
    })
  },
  //查询国家列表
  getCountry(){
    return request({
      url:'/api/v1/admin/globalepidemicdata/getCountry',
      method:'get',
    })
  },
  //查询省份信息
  getProvince(countryId){
    return request({
      url:'/api/v1/admin/globalepidemicdata/getProvince/'+countryId,
      method:'get',
    })
  },
  //查询城市信息
  getCity(provinceId){
    return request({
      url:'/api/v1/admin/globalepidemicdata/getCity/'+provinceId,
      method:'get',
    })
  },
  //分页查询所有学校疫情数据
  getSchoolEpidemicListPage(page,limit,dataQuery){
    return request({
      url:'/api/v1/admin/schoolepidemicdata/getAllSchoolEpidemicData/'+page+"/"+limit,
      method:'post',
      data:dataQuery
    })
  },
  //加载学校信息
  getSchool(){
    return request({
      url:'/api/v1/admin/schoolepidemicdata/getSchool',
      method:'get'
    })
  },
  //加载学院信息
  getCollage(schoolId){
    return request({
      url:'/api/v1/admin/schoolepidemicdata/getCollage/'+schoolId,
      method:'get'
    })
  },
  //删除讲师
  deleteTeacherById(id){
    return request({
      url:'/eduservice/teacher/'+id,
      method:'delete'
    })
  },
  //添加讲师
  addTeacher(teacher){
    return request({
      url:'/eduservice/teacher/addTeacher',
      method:'post',
      data:teacher
    })
  },
  //根据讲师Id获取讲师信息
  getInfoById(id){
    return request({
      url:'/eduservice/teacher/findOneTeacher/'+id,
      method:'get',
    })
  },
  //修改讲师
  updateTeacher(teacher){
    return request({
      url:'/eduservice/teacher/updateTeacher',
      method:'put',
	    data:teacher
    })
  }


}
